function change() {
    var oldPassword = $.trim($("input[name='oldPassword']").val());
    var password = $.trim($("input[name='password']").val());
    var rePassword = $.trim($("input[name='rePassword']").val());
    if (oldPassword === "") {
        toast("请输入原密码");
        return false;
    }
    if (password === "") {
        toast("请输入新密码");
        return false;
    }
    if (password !== rePassword) {
        toast("请确认新密码");
        return false;
    }
    ajax({
        url: "/api/user/resetPwd",
        type: "post",
        dataType: "json",
        headers: {},
        data: {password: md5(oldPassword).toUpperCase(), newPassword: md5(password).toUpperCase()},
        success: function (result) {
            toast(result.msg);
        }
    });
}

function onPageReady() {
}